package com.wondertek.poms.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.groups.Default;

@Data
public class ProductGroupVo {

    private Long groupId;

    @NotBlank(message = "计费组名不能为空", groups = {Default.class})
    @Length(message = "计费组名长度不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    private String groupName;

    private String productIds;

    @Length(message = "计费组名长度不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    private String status;

    @Length(message = "计费组别名长度不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    private String alias;

    private String startTime;

    private String endTime;


}
